home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 May
/
Ahoy_Magazine_86-05_1986_Double_L.d64
/
ski folly
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
7KB
|
234 lines
10 print"[147]":poke53281,1:poke53280,1:poke52,60:poke56,60
20 data 120,169,73,141,20,3,169,3,141
30 data 21,3,88,96,169,208,133,252,169
40 data 3,133,251,162,1,160,0,177,251
50 data 105,1,144,2,169,251,145,251,224
60 data 7,240,8,232,230,251,230,251,24
70 data 144,234,173,1,220,41,15,201
80 data 11,240,7,201,7,240,16,76,49,234,173,0,208,201,32,240,246,206,0,208
90 data 24,144,240,173,0,208,201,255,240,233,238,0,208,24,144,227,0,0,0,0,0
100 foru=828to921:readq:pokeu,q:next
110 sys 828:poke53248+21,0:vic=53248
120 gosub600
130 gosub1260
140 poke856,2
150 x5=rnd(-sqr(rnd(1)*ti))
160 s=53248:print"[147][144]
170 [151]53281,3
180 [129]u[178]1024[164]1063:[151]u,160:[151]u[170]960,160
190 [151]54272[170]u,6:[151]54272[170]u[170]960,6:[130]
200 [129]u[178]1024[164]1984 [169]40:[151]u,160:[151]u[170]33,160:[151]u[170]39,160
210 [151]u[170]54272,14:[151]54272[170]u[170]33,14:[151]54272[170]u[170]39,14:[130]
220 [151]53281,1
230 [129]u[178]0[164]14[169]2:[151]u[170]vic,(u[172]18):[130]
240 [151]2040,203
250 [151]vic[170]28,34:[151]vic[170]37,5:[151]vic[170]38,5
260 [129]u[178]40[164]47:[151]vic[170]u,5:[130]
270 [151]vic[170]21,255
280 [129]i[178]1[164]7:[151]2040[170]i,202:[130]
290 di[178]254
300 x[178]150:di[178]0
310 [151]vic,x:ti$[178]"000000":a$(2)[178]"fast "
320 a$(3)[178]"real fast ":a$(4)[178]"very fast! "
330 a1[178][194](vic[170]30):[129]i[178]0[164]24:[151]54272[170]i,0:[130]
340 [151]54296,15:[151]54273,0:[151]54277,85:[151]54278,85:[151]54276,129
350 a$(1)[178]"whoa!!!!!!":g[178]2:a$(5)[178]"too fast !
360 i=0:a=int(rnd(1)*7)+1:ifpeek(vic+(a*2)+1)>240theni=1
370 a1=peek(vic+30)and1:ifa1then1790
380 ifbr=0thenpoke856,g
390 ifbr=0thenif(peek(56321)and16)=0thenpoke856,1:br=1:gosub2280
400 ifbrthendi=di-1
410 ifbrthenif(peek(56321)and16)=16thenpoke856,g:br=0:poke54276,129:gosub2310
420 di=di+1:print"end of slope: [157][157][157][157]"400-di"[157] ft.";:ifdi=>400then1520
430 ifti$="000011"theng=3
440 ifti$="000049"theng=4
450 printtab(20);"speed:";a$(peek(856));
460 print""tab(34)"time:
470 [153]""[163]33);""ti$"
480 poke54272,g*30+20
490 ifti$="000009"thenprint""tab(8);"slope steepening!
500 [139]ti$[178]"000047"[167][153]""[163]8);"slope steepening!
510 ifti$="000012"thenprint""tab(8);" "
520 ifti$="000050"thenprint""tab(8);" "
530 ifi=0thengoto360
540 poke2040+a,202
550 pokevic+(a*2)+1,0
560 a1=peek(vic+30)and1:ifa1then1790
570 poke54272,peek(856)*12
580 goto360
590 rem ---- opening screen ----
600 print"[147]
610 [131] 0,0,0,0,0,0,0,0
620 [131] 0,63,198,3,127,230,3,192
630 [131] 6,24,192,6,48,192,6,99
640 [131] 255,230,195,127,247,131,0,55
650 [131] 3,0,55,3,0,55,131,0
660 [131] 54,195,0,54,99,127,230,51
670 [131] 255,198,27,0,0,0,0,0
680 [131] 0,0,0,0,0,0,0,0
690 [131] 0,0,0,0,0,0,0,0
700 [131] 0,255,198,192,255,198,192,192
710 [131] 6,192,192,6,192,192,6,192
720 [131] 254,6,192,254,6,192,192,198
730 [131] 211,193,230,211,195,54,211,194
740 [131] 22,211,195,54,211,193,230,211
750 [131] 192,198,207,0,0,3,0,0
760 [131] 3,255,255,254,127,255,252,0
770 i[178]200:[141]780:[137]790
780 [129]u[178]i[172]64[164]i[172]64[170]63:[135]q:[151]u,q:[130]:[142]
790 i[178]201:[141]780
800 [151]2040,200:[151]2041,200:[151]2042,201:vic[178]53248
810 [151]vic[170]21,6:[151]vic[170]29,7:[151]vic[170]23,7
820 [151]vic[170]2,136:[151]vic[170]4,188
830 [151]vic[170]41,14:[151]vic[170]40,14
840 [151]vic[170]3,0:[151]vic[170]5,0
850 s[178]54272:[151]s[170]24,15:[151]s[170]5,85:[151]s[170]6,85:[151]s[170]12,85:[151]s[170]13,86
860 [151]s[170]4,33:[151]s[170]11,17
870 [139][194](vic[170]3)[178][177]127[167][151]vic[170]1,[194](vic[170]3):[137]900
880 [151]s[170]1,128[171][194](vic[170]3):[151]s[170]8,128[171][194](vic[170]5)
890 [137]870
900 [151]vic,[194](vic[170]2):[151]vic[170]21,5:[151]vic[170]1,127:[151]vic[170]39,6
910 [139][194](vic[170]5)[177][178]127[167]940
920 [151]s[170]8,128[171][194](vic[170]5)
930 [137]910
940 [151]856,0:[151]vic[170]41,6:[151]vic[170]5,127
950 [151]s[170]24,0
960 [129]u[178]0[164]5:[129]e[178]0[164]14:[151]vic[170]39,e:[151]vic[170]41,e:[130]e,u:[141]1080
970 [151]53254,171:[151]53255,200:[151]53257,100:[151]53256,171:[151]2044,204
980 [151]2043,203:[151]vic[170]21,13[170]16
990 [151]vic[170]42,12:[151]vic[170]43,10
1000 [151]198,0:[129]dl[178]1[164]400:[130]
1010 sb[178]1024:cb[178]sb[170]54272:[129]i[178]10[164]29:[151]sb[170]i[170]160,160:[151]cb[170]i[170]160,6
1020 [151]sb[170]i[170]880,160:[151]cb[170]i[170]880,6:[130]:[129]i[178]4[164]22:w[178]i[172]40:[151]sb[170]w[170]10,160
1030 [151]cb[170]w[170]10,6:[151]sb[170]w[170]29,160:[151]cb[170]w[170]29,6:[130]
1040 [153]"stoppress firecont
1050 geta$:ifa$=""then1050
1060 pokevic+21,0:foru=0to14:pokeu+vic,0:next
1070 pokevic+23,0:pokevic+29,0:print"[147]":poke53280,0:return
1080 fori=202*64to204*64+62
1090 readq:pokei,q:next:return
1100 data 0,16,0,0,40,0,0,84,0
1110 data 0,170,0,1,85,0,2,170,128
1120 data 5,85,64,2,170,128,5,85,64
1130 data 10,170,160,21,85,80,10,170,160
1140 data 21,85,80,42,170,168,0,56,0
1150 data 0,56,0,0,56,0,5,85,64
1160 data 42,128,168,0,0,0,0,0,0
1170 data 0,0,62,0,0,127,0,0,127
1180 data 0,2,62,0,4,28,0,24
1190 data 127,128,24,255,192,45,190,96
1200 data 71,62,48,130,62,80,0,62
1210 data 56,0,190,16,4,118,8,6
1220 data 54,4,3,54,2,1,182,0
1230 data 0,230,0,0,99,0,0,49
1240 data 128,0,24,192,0,0,0,0
1250 return
1260 rem ---- instructions ----
1270 print"[154][147]":a1=peek(56321)and16:ifa1=0then1260
1280 poke856,0
1290 pokevic+23,0:pokev+29,0
1300 poke53281,6:fori=12to27:poke1064+i,160:poke1064+i+160,160:next
1310 fori=1064to1064+160step40:pokei+12,160:pokei+27,160:next
1320 print""tab(14);"[155][164][164][164][164][164][164][164][164][164][164][164][164]":printtab(14);"instructions"
1330 print"[154] [158]you're on a ski vacation at the mt.
1340 [153]" kendall ski lodge. you find that you
1350 print" have accidentally gotten on "chr$(34)"dead
1360 [153]" man's slope"[199](34)"!!!! you must use
1370 print" your limited skiing abilities to
1380 [153]" save your life !!!!!!!!!!!!!!!!!!!
1390 print" this is you:[146]"
1400 printtab(22);"[145][164][164][205]
1410 [153][163]22);"tab(tab((NULL)":vic[178]53248
1420 [151]vic[170]5,104:[151]vic[170]4,170:[151]2042,202:[151]vic[170]41,0
1430 [151]vic[170]21,5:[151]2040,203
1440 [151]vic,235:[151]vic[170]1,200
1450 [153]"listpress -firewaitlist- to start
1460 sb=1024:cb=54272+sb:fori=0to39:pokesb+i,160:pokecb+i,7
1470 pokesb+i+960,160:pokecb+i+960,7:next
1480 fori=0to960step40
1490 pokesb+i,160:pokecb+i,7:pokesb+i+39,160:pokecb+i+39,7:next
1500 a=peek(56321)and16:ifathen1500
1510 print"[147]":pokevic+21,0:return
1520 rem ---- you made it ----
1530 pokevic+11,0:poke2045,204
1540 t$=ti$
1550 pokevic+21,252
1560 ifpeek(vic+5)=<50then1560
1570 sp=53251:foru=1to7
1580 ifu=5then1600
1590 pokesp,0
1600 sp=sp+2:next
1610 ifpeek(vic+11)=<150then1610
1620 poke856,2
1630 ifpeek(vic+11)=<179then1630
1640 poke856,0
1650 print""tab(9);"you made it !!!
1660 h1(1)[178]25:l1(1)[178]30:h2(1)[178]18:l2(1)[178]209
1670 h1(2)[178]33:l1(2)[178]135:h2(2)[178]25:l2(2)[178]30
1680 h1(3)[178]42:l1(3)[178]62:h2(3)[178]31:l2(3)[178]165
1690 h1(4)[178]50:l1(4)[178]60:h2(4)[178]37:l2(4)[178]162
1700 h1(5)[178]42:l1(5)[178]62:h2(5)[178]31:l2(5)[178]165
1710 h1(6)[178]50:l1(6)[178]60:h2(6)[178]37:l2(6)[178]162
1720 s[178]54272:[151]s[170]5,85:[151]s[170]6,85:[151]s[170]12,85:[151]s[170]13,85
1730 [151]s[170]24,15:[151]s[170]4,33:[151]s[170]11,17
1740 [129]x[178]1[164]6:[151]s,l1(x):[151]s[170]1,h1(x):[151]s[170]7,l2(x):[151]s[170]8,h2(x)
1750 [139]h1(x)[178]50[167][129]t[178]1[164]200:[130]
1760 [129]t[178]1[164]200:[130]:[130]x
1770 [129]d[178]0[164]24:[151]s[170]d,0:[130]
1780 [137]1920
1790 [143] ---- you crashed! ----
1800 [151]856,0:s[178]54272:[151]s,240:[151]s[170]1,33:[151]s[170]5,8:[151]s[170]22,104:[151]s[170]23,1
1810 [151]s[170]24,79
1820 [151]s[170]4,129:[129]dl[178]1[164]100:[130]:[151]s[170]4,128
1830 [151]856,1
1840 [129]i[178]200[164]251:[151]53249,i:[130]
1850 [151]856,1:t$[178]ti$:[151]s[170]4,0
1860 [129]y[178]32[164]50:[151]2040,y:[130]
1870 [151]vic[170]21,254
1880 s[178]54272:[151]s[170]24,15:[151]s[170]5,85:[151]s[170]1,1:[151]s[170]4,17
1890 [129]dl[178]1[164]200:[130]:[151]s[170]4,16:[129]dl[178]1[164]200:[130]:[151]s[170]4,0
1900 [153]""[163]8);" you crashed! "
1910 [151]54276,0
1920 [153]""[163]13)"game over!":[153]""[163]13)"press firewait
1930 pokes+4,0:pokes+4,33:pokes+5,85:pokes+24,15
1940 a1=peek(56321)and16:poke53280,rnd(1)*16
1950 sc=abs(int(((300-val(t$))*di)/2)):ifdi=400thensc=sc+500
1960 a=int(rnd(1)*7)+1:ifpeek(vic+(a*2)+1)=251thenpokevic+(a*2)+1,0
1970 ifa1then1940
1980 poke56321,0:poke53280,0
1990 pokes+24,0
2000 poke53281,14
2010 pokevic+21,0
2020 a1=peek(56321)and16:ifa1=0then2020
2030 print"[147] your score:"sc
2040 ifsc=>hsthenhs=sc
2050 print" best score:"hs
2060 print" would you like to
2070 [153]" play again?
2080 print" y / n
2090 [153]"open syswait^open sys open wait
2100 a4=1761:a5=1765
2110 a=a4
2120 a1=peek(56321)and15
2130 ifa1=11thena=a4
2140 ifa1=7thena=a5
2150 pokea4,32:pokea5,32:pokea,30
2160 a1=peek(56321)and16:ifa1then2120
2170 ifa=a4then130
2180 poke198,0:fori=1to30:print"";:next
2190 end
2200 data 0,0,56,0,0,248,0,1
2210 data 248,0,3,240,0,7,224,0
2220 data 15,224,0,31,192,0,63,192
2230 data 0,63,128,0,127,0,0,127
2240 data 0,0,254,0,0,252,0,0
2250 data 124,0,0,112,0,0,0,0
2260 data 1,192,0,3,224,0,3,224
2270 data 0,3,224,0,1,192,0,0
2280 poke54276,0:poke54277,144:poke54276,33:poke54276,32:poke54278,144
2290 poke54273,20
2300 return
2310 poke54276,0:poke54276,129
2320 poke54273,0:poke54277,85
2330 return